package com.galen.manual.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@Schema(description = "任务审核请求")
public class TaskReviewDTO {

    @NotNull(message = "审核结果不能为空")
    @Schema(description = "审核结果 true:通过 false:驳回", required = true)
    private Boolean approved;

    @Schema(description = "审核意见")
    @Size(max = 500, message = "审核意见长度不能超过500个字符")
    private String reviewComment;
}